.class Lcom/evernote/client/android/EvernoteOAuthActivity$1;
.super Landroid/webkit/WebViewClient;
.source "EvernoteOAuthActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/evernote/client/android/EvernoteOAuthActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;


# direct methods
.method constructor <init>(Lcom/evernote/client/android/EvernoteOAuthActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/evernote/client/android/EvernoteOAuthActivity;

    .prologue
    .line 106
    iput-object p1, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$1;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    invoke-direct {p0}, Landroid/webkit/WebViewClient;-><init>()V

    return-void
.end method


# virtual methods
.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .registers 9
    .param p1, "view"    # Landroid/webkit/WebView;
    .param p2, "url"    # Ljava/lang/String;

    .prologue
    const/4 v1, 0x1

    .line 110
    invoke-static {p2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

    .line 111
    .local v0, "uri":Landroid/net/Uri;
    invoke-virtual {v0}, Landroid/net/Uri;->getScheme()Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$1;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # invokes: Lcom/evernote/client/android/EvernoteOAuthActivity;->getCallbackScheme()Ljava/lang/String;
    invoke-static {v3}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$000(Lcom/evernote/client/android/EvernoteOAuthActivity;)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_34

    .line 112
    iget-object v2, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$1;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    # getter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mCompleteAuthSyncTask:Landroid/os/AsyncTask;
    invoke-static {v2}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$100(Lcom/evernote/client/android/EvernoteOAuthActivity;)Landroid/os/AsyncTask;

    move-result-object v2

    if-nez v2, :cond_33

    .line 113
    iget-object v2, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$1;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    new-instance v3, Lcom/evernote/client/android/EvernoteOAuthActivity$CompleteAuthAsyncTask;

    iget-object v4, p0, Lcom/evernote/client/android/EvernoteOAuthActivity$1;->this$0:Lcom/evernote/client/android/EvernoteOAuthActivity;

    const/4 v5, 0x0

    invoke-direct {v3, v4, v5}, Lcom/evernote/client/android/EvernoteOAuthActivity$CompleteAuthAsyncTask;-><init>(Lcom/evernote/client/android/EvernoteOAuthActivity;Lcom/evernote/client/android/EvernoteOAuthActivity$1;)V

    new-array v4, v1, [Landroid/net/Uri;

    const/4 v5, 0x0

    aput-object v0, v4, v5

    invoke-virtual {v3, v4}, Lcom/evernote/client/android/EvernoteOAuthActivity$CompleteAuthAsyncTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    move-result-object v3

    # setter for: Lcom/evernote/client/android/EvernoteOAuthActivity;->mCompleteAuthSyncTask:Landroid/os/AsyncTask;
    invoke-static {v2, v3}, Lcom/evernote/client/android/EvernoteOAuthActivity;->access$102(Lcom/evernote/client/android/EvernoteOAuthActivity;Landroid/os/AsyncTask;)Landroid/os/AsyncTask;

    .line 117
    :cond_33
    :goto_33
    return v1

    :cond_34
    invoke-super {p0, p1, p2}, Landroid/webkit/WebViewClient;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z

    move-result v1

    goto :goto_33
.end method
